package com.example.lawyer.databind.activity;

import android.view.View;
import android.widget.ImageView;

import androidx.databinding.BindingAdapter;
import androidx.databinding.ObservableField;

import com.bumptech.glide.Glide;

public class ActivityMainDatabindModel {


    public ObservableField<String> url = new ObservableField<>();



    @BindingAdapter("url")
    public static void SetCoverUrl(View view,String url)
    {
        if(url!=null) {
            Glide.with(view).load(url).into((ImageView) view);
        }
    }

}
